/* Find the minimum of three numbers */
#include <cstdio>

double minimum( double x, double y, double z )
{
   double min = x;     /* assume x is largest */

   if ( y < min ) { /* if y is larger than min, assign y to min */
      min = y;
   } /* end if */

   if ( z < min ) { /* if z is larger than min, assign z to min */
      min = z;
   } /* end if */

   return min;      /* min is largest value */

} 

double minimum( double x, double y)
{
   double min = x;     /* assume x is largest */

   if ( y < min ) { /* if y is larger than min, assign y to min */
      min = y;
   } 

   return min;      /* min is largest value */

} 
